package com.yps.io.nio;

import java.util.Scanner;

public class Test {
	public static void main(String[] args) throws Exception {
		//运行服务器  
	    Server.start();  
	    //避免客户端先于服务器启动前执行代码  
	    Thread.sleep(1000);  
	    //运行客户端   
	    Client.start();  
	    while(Client.sendMsg(new Scanner(System.in).nextLine()));  
	}
}
